public class outerClass {
    public int data1=1;
    public int data2=2;
    public double data3=3.2;
    public class InnerClass{
        public int data1=4444;
        public int data4=4;
        private int data5=5;
        public void test(){
            System.out.println(outerClass.this.data1);
            System.out.println(data4);
            System.out.println("这是内部类的方法");
        }
    }
    public void test(){
        System.out.println(data1);
        System.out.println("外部类的方法");
    }

}
